<nav class="main-header navbar navbar-expand-md navbar-light navbar-white">
    <div class="container">
        <a href="/" class="navbar-brand">
            <img src="{$site_info.logoImage ? getUrlPath($site_info.logoImage):'__STATIC__/img/logo.png'} " alt="{$site_info.seoTitle} Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
            <span class="brand-text font-weight-light">{$site_info.webSiteName}</span>
        </a>
        <button class="navbar-toggler order-1" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse order-3" id="navbarCollapse">
            <!-- Left navbar links -->
            <ul class="navbar-nav">
                {:html_entity_decode($nav)}
            </ul>
            <!-- SEARCH FORM -->
            <form class="form-inline ml-0 ml-md-3" action="/index/search">
                <div class="input-group input-group-sm">
                    <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search" name="keywords">
                    <div class="input-group-append">
                        <button class="btn btn-navbar" type="submit">
                            <i class="fa fa-search"></i>
                        </button>
                    </div>
                </div>
            </form>
        </div>
        <!-- Right navbar links -->
        <ul class="order-1 order-md-3 navbar-nav navbar-no-expand ml-auto">

            <li class="nav-item">
                <a class="nav-link mb-2" href="{:url('/vip/index')}">
                    <img alt="35x35"  src="__STATIC__/img/vip.png" width="35" height="35">
                </a>
            </li>
            <!-- Messages Dropdown Menu -->
            <!-- Notifications Dropdown Menu -->
            <li class="nav-item dropdown">
                {if $Request.session.UserInfo}
                <a class="nav-link mb-2" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    <img alt="35x35" class="rounded" src="{:getUserAvatarUrl() ? getUserAvatarUrl() :'__STATIC__/img/user4-128x128.jpg'}" data-holder-rendered="true" width="35" height="35">
                </a>
                {else /}
                <a class="nav-link mb-2" href="javascript:void(0);" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    <img alt="35x35" class="rounded" src="__STATIC__/img/avatar.png" data-holder-rendered="true" width="35" height="35">
                </a>
                {/if}
                <div class="dropdown-menu dropdown-menu-right">
                    {if $Request.session.UserInfo}
                    <a class="dropdown-item" href="{:url('/user/user/centor')}"><i class="fa fa-user" aria-hidden="true"></i> </i>{:getUserInfoData(0,'nickname')}</a>
                    <!-- <a class="dropdown-item" href="{:url('/user/message')}"><i class="fa fa-bell" aria-hidden="true"></i> 消息</a> -->
                    <a class="dropdown-item" href="{:url('/user/login/logout')}"><i class="fa fa-sign-out" aria-hidden="true"></i> </i>退出</a>
                    {else /}
                    <a class="dropdown-item" href="{:url('/user/login/login')}"><i class="fa fa-user" aria-hidden="true"></i> </i>登陆</a>
                    {/if}
                </div>
            </li>
        </ul>
    </div>
</nav>